package com.wbp.cms.core.user.dao;

import org.springframework.stereotype.Repository;

import com.wbp.cms.client.user.domain.UserRoleDO;
import com.wbp.cms.core.dao.BaseDao;


/**
 * @Description: 
 * @Department:
 * @author andy.lhc
 * @date 2016年3月20日 上午10:44:28 
 */
@Repository("userRoleDAO")
public class UserRoleDAO extends BaseDao {

  public Long insert(UserRoleDO userRole) {
    super.insert("UserRoleMapper.insert", userRole);
    return userRole.getId();
  }
  
  public int delete(Long userId){
      return this.delete("UserRoleMapper.delete", userId) ;
  }
  
  
}
